<template>
  <div class="box">
    <h1>Grandson</h1>
    <button @click="addd">调用爷爷组件的自定义事件</button>
  </div>
</template>

<script>
export default {
  name: "Grandson",
  props: ["age" , "sex", "count"  ,"getData2" , "getData3"],

  methods:{
    addd(){
      this.$emit('abc')
    }
  },

};
</script>

<style scoped>
.box {
  background: deepskyblue;
}
</style>
